class Dog{
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Dog(){

    }

    public Dog(String name,int age){
        this.name = name;
        this.age = age;
    }
    public void Show(){
        System.out.println("姓名: "+name+" 年龄: "+age);
    }
}

public class Test {

        public static void main(String[] args) {
            Dog dog = new Dog();
//            dog.name = "小黄";
//            dog.age = 10;
            dog.setName("小黄");
            dog.getName();
            dog.setAge(10);
            dog.getAge();
            dog.Show();
        }
    }
